package v3.object.space;

import galaxy.obj.Point;
import hipparcos.generate.GenerateStarSystem;
import hipparcos.obj.StarSystem;

public class Star extends aSpaceObj
{
	

	StarSystem starSystem=null;	
	
	public Star()
	{
		super();
		this.spaceObjType = SpaceObjType.Star;
	}


	@Override
	public String getInfo()
	{
		return (starSystem==null? "not Yet Generated" : starSystem.toString());
	}

	
	@Override
	public void generate(Universe  u) throws Exception
	{
		super.generate(u);
		starSystem = new StarSystem(position);
		GenerateStarSystem gss = new GenerateStarSystem(0,starSystem,u.getT(),u.getR(),u.getL(),u.getM(),u.getAtmPressSheet());
		gss.process();
		starSystem = gss.getStarSystem();
	}


	@Override
	public String getDescription()
	{
		return spaceObjType.toString();
	}


	@Override
	public void collision(iSpaceObj o)
	{
		// TODO Auto-generated method stub
		
	}

}
